package com.smartcampusbackend.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.smartcampusbackend.model.User;
import org.springframework.web.multipart.MultipartFile;

import java.util.Map;

public interface UserService extends IService<User> {
    void register(User user);
    User login(String username, String password);
    User getByUsernameAndRole(String username, String role);
    boolean updateUser(User user);
    User getByUsername(String username);

    IPage<User> pageUsers(int page, int size, String username, String role, Integer status);
    Map<String, Object> importUsersFromExcel(MultipartFile file);
}
